package com.jeff.android.lab.architecture.modularization;

import com.jeff.android.lab.AppApplication;
import com.jeff.android.lab.BaseFragment;
import com.jeff.android.lab.R;
import com.jeff.android.lab.commonlib.IAppComponent;
import com.jeff.android.lab.commonlib.ServiceFactory;
import com.jeff.android.lab.homecomponent.HomeApp;
import com.jeff.utils.ToastUtil;

import butterknife.OnClick;

/**
 * @author: duff
 * @date: 2019/2/25
 * @since: 1.0.0
 */
public class ModularizationFragment extends BaseFragment {

    @Override
    protected int getRootLayout() {
        return R.layout.architecture_fragment_modlearization;
    }

    @OnClick(R.id.btn_login)
    public void login() {
        ServiceFactory.getInstance().launchLogin(mContext);
    }

    @OnClick(R.id.btn_home)
    public void goHome() {
        ServiceFactory.getInstance().launchHome(mContext);
    }


}
